Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

fix startup issues at boot #33

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Optiligence
Copy link

fixes #25

Instead of enabling the service directly, amdgpu-fancontrol.path is what needs to be enabled/started now.

While working on this i noticed that Linux 5.11 seems to properly apply the fan curve from my GPU bios now which means i won’t need this service anymore. Mentioning that for people who used it for the same reason i did. Of course it’s still useful for custom fan curves.

@Zile995
Copy link

Zile995 commented Feb 28, 2021

Thanks for the solution. But, for me it doesn't work somehow...

It only works if I delay systemd service startup:
ExecStartPre=/bin/sleep 0.9

@Optiligence
Copy link
Author

In what way doesn’t it work?
amdgpu-fancontrol.path doesn’t trigger or amdgpu-fancontrol.service errors anyway?

@Zile995
Copy link

Zile995 commented Feb 28, 2021

amdgpu-fancontrol.path triggers amdgpu-fancontrol.service, so that's ok.

But I got this error: amdgpu-fancontrol[413]: invalid hwmon files
As you can see in the first ss:
Screenshot_20210228_234042

Delayed service works fine...
Screenshot_20210228_233827

@Optiligence
Copy link
Author

Optiligence commented Feb 28, 2021

Are you sure you also updated the .service file? Because that one should not be enabled. (Maybe it has to be manually disabled first)

@Zile995
Copy link

Zile995 commented Feb 28, 2021

Yes, I have updated the .service file. It was not enabled by default.

I enabled only .path file, located in /usr/lib/systemd/system/
sudo systemctl enable amdgpu-fancontrol.path

The .service unit can't be enabled.

The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.

@Optiligence
Copy link
Author

It says enabled in the Loaded: line for the .service unit in your screenshot though. Can you try to disable it?

@Zile995
Copy link

Zile995 commented Feb 28, 2021

Yes, it seems to be enabled, sorry. Ok, I disabled it and restarted the computer.

Here are the changes but fan speed is not changing at boot (.service is inactive):

Screenshot_20210301_004307

Screenshot_20210301_004759

Screenshot_20210301_005352

If I restart the .path with sudo systemctl restart amdgpu-fancontrol.path, the fans starts spinning faster, pwm value becomes ~150.

150 is used just for testing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Systemd service error
2 participants